function  setIonicWebViewServerPath() {
    window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, function(dirEntry) {
        var targetPath = dirEntry.toURL() + "update";
        Ionic.WebView.setServerBasePath(targetPath);
    });
}

function getIonicWebViewServerPath() {
    Ionic.WebView.getServerBasePath(function(path){
        document.getElementById("updatePath").innerHTML = path;
    });
}

function persistIonicWebViewServerPath() {
    Ionic.WebView.persistServerBasePath();
}